package com.base.common.persistent.model;

import java.util.Date;

/**
 * 终端信息实体类
 * 
 * @author kat.luhongkai
 *
 */
public class Terminal {
	private int id; // 主键id
	private String phone; // 手机号码
	private String code; // 终端机器码
	private String remarks; // 终端描述
	private int captcha; // 验证码
	private int status = -1; // 状态
	private String openId; // 微信id
	private String appleId; // 苹果设备id
	private Date registeTime; // 注册时间
	private int bid; // 设备注册方式识别码
	private String androidClientId; // android个推id
	private String appleClientId; // android个推id
	private int userChooseCompoundsId; // 用户选择的小区的主键ID

	public String getAndroidClientId() {
		return androidClientId;
	}

	public void setAndroidClientId(String androidClientId) {
		this.androidClientId = androidClientId;
	}

	public String getAppleClientId() {
		return appleClientId;
	}

	public void setAppleClientId(String appleClientId) {
		this.appleClientId = appleClientId;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public int getCaptcha() {
		return captcha;
	}

	public void setCaptcha(int captcha) {
		this.captcha = captcha;
	}

	private User user; // 用户实体类

	public int getId() {
		return id;
	}

	public Terminal setId(int id) {
		this.id = id;
		return this;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public int getBid() {
		return bid;
	}

	public void setBid(int bid) {
		this.bid = bid;
	}

	public String getAppleId() {
		return appleId;
	}

	public void setAppleId(String appleId) {
		this.appleId = appleId;
	}

	public Date getRegisteTime() {
		return registeTime;
	}

	public void setRegisteTime(Date registeTime) {
		this.registeTime = registeTime;
	}

	/**
	 * @return the userChooseCompoundsId
	 */
	public int getUserChooseCompoundsId() {
		return userChooseCompoundsId;
	}

	/**
	 * @param userChooseCompoundsId
	 *            the userChooseCompoundsId to set
	 */
	public void setUserChooseCompoundsId(int userChooseCompoundsId) {
		this.userChooseCompoundsId = userChooseCompoundsId;
	}
}
